/**
 * 常用服务
 * useful server
 */
export const us = {
  data:[
    {
      title:"前台登录",
      icon:"/static/icon/daycall.png",
      description:"记录每天的工作经验和心得",
      useCount:1000,
	  page:"loginFrontEnd"
    },{
      title:"讲书",
      icon:"/static/icon/week.png",
      description:"总结每周的工作情况和下周计划",
	  page:'bookColumn',
      useCount:10000
    },{
      title:"文章详情",
      icon:"/static/icon/kaoqin.png",
      description:"文章详情",
      page:'article',
      useCount:10000
    },{
      title:"我的",
      icon:"/static/icon/richeng.png",
      description:"建立和查看个人工作安排",
      useCount:10000,
      page:'mine'
    },{
      title:"文章专栏",
      icon:"/static/icon/liucheng.png",
      description:"请假申请",
      useCount:10000,
      page:'articleColumn'
    },
      {
          title:"设置",
          icon:"/static/icon/liucheng.png",
          description:"出差申请",
          useCount:10000,
          page:'setting'
      },
      {
          title:"前台首页",
          icon:"/static/icon/liucheng.png",
          description:"首页",
          useCount:10000,
          page:'indexFrontEnd'
      },
      {
          title:"课程详情",
          icon:"/static/icon/tongzhi.png",
          description:"查看企业对员工下发的通知公告",
          useCount:10000,
          page:'courseDetail'
    },{
          title:"内部邮件",
          icon:"/static/icon/duanxin.png",
          description:"查看内部消息",
          useCount:10000,
          page:'mailHome',
          dot:false
      },{
          title:"通讯录",
          icon:"/static/icon/duanxin.png",
          description:"查看部门，组员",
          useCount:10000,
          page:'communication',
      }
  ]
}


/**
 * other server 其他服务
 */
export const os = {
  data:[
    {
      title:"新闻中心",
      icon:"/static/icon/daycall.png",
      description:"新闻中心",
      page:'columnList',
      useCount:10000
    },{
      title:"投票中心",
      icon:"/static/icon/week.png",
      description:"投票中心",
      useCount:10000
    },{
      title:"任务中心",
      icon:"/static/icon/kaoqin.png",
      description:"任务中心",
      useCount:10000
    },{
      title:"文档中心",
      icon:"/static/icon/richeng.png",
      description:"文档中心",
      useCount:10000,
      page:'fileHome'
    },{
      title:"合同",
      icon:"/static/icon/liucheng.png",
      description:"合同",
      useCount:10000
    },{
      title:"会议",
      icon:"/static/icon/tongzhi.png",
      description:"会议",
      useCount:10000
    },{
      title:"客户关系",
      icon:"/static/icon/duanxin.png",
      description:"客户关系",
      useCount:10000
    }
  ]
}
 const verifyLogin=function(){
		return new Promise((resolve,reject)=>{
			uni.showModal({
				title:'提示',
				content:"您还没有登陆，请登陆",
				success: (res) => {
					if(res.confirm){
						resolve()
					}
					else{
						reject()
					}
				}
			})
		})
}
export default{
	verifyLogin
}